package lab02.test11;

/**
 * Created by ASUS on 2017/10/22.
 */
public class Rectangle implements Printx {
    //属性
    double length;
    double width;
    //方法
    double area(){
        return length*width;
    }
    double perimeter(){
        return 2*length*width;
    }
    double side(){
        return length+width;
    }

    @Override
    public void printMyWay() {
area();
perimeter();
side();
    }
}
